﻿<%@ Page Title="Registrer medlem" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="True" CodeBehind="RegistrerMedlem.aspx.cs" Inherits="DDMedlem.RegistrerMedlem" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="content3" ContentPlaceHolderID="statusContent" runat="server">

    <asp:Label ID="Status_Label" runat="server" Text=""></asp:Label>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</ajax:ToolkitScriptManager>



<ajax:TabContainer ID="TabContainer1"  Width="800px" BackColor="" runat="server" 
        ActiveTabIndex="0" EnableTheming="True">

<ajax:TabPanel BackColor="" runat="server" HeaderText="Person info" ID="tabPanel1">
<ContentTemplate>
<ajax:RoundedCornersExtender ID="TabContainer1_RoundedCornersExtender" 
        runat="server" Enabled="True" TargetControlID="tabPanel1" Radius="5" Corners="All" />
<table width="800" cellspacing="10px">
<tr>
<td class="TDkontaktOplysninger" valign="top">

<!-- KONTAKT OPLYSNINGER --->
<fieldset style="width: 440px;">
<legend>Kontakt oplysninger</legend>
    <asp:Table ID="Table1" runat="server" CellPadding="2">
    <asp:TableRow ID="TableRow1" runat="server">
        <asp:TableCell ID="TableCell1" runat="server"><asp:Label ID="Label1" runat="server" Text="Fornavn"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell2" runat="server"><asp:TextBox ID="fornavn_txtBox" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="fornavn_eksisterer" runat="server" ControlToValidate="fornavn_txtbox" Display="None" ErrorMessage="Fornavn skal være udfyldt"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="fn_ex_co" runat="server" Enabled="True" 
            TargetControlID="fornavn_eksisterer"></ajax:ValidatorCalloutExtender>
</asp:TableCell>

         <asp:TableCell ID="TableCell3" runat="server"><asp:Label ID="Label5" runat="server" Text="Telefon"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell4" runat="server"><asp:TextBox ID="tlf_txtbox" runat="server"></asp:TextBox>
</asp:TableCell>
    </asp:TableRow>

     <asp:TableRow ID="TableRow2" runat="server">
        <asp:TableCell ID="TableCell5" runat="server"><asp:Label ID="Label2" runat="server" Text="Efternavn"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell6" runat="server"><asp:TextBox ID="efternavn_txtbox" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="efternavn_txtbox" Display="None" ErrorMessage="Efternavn skal være udfyldt"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" 
             Enabled="True" TargetControlID="RequiredFieldValidator1"></ajax:ValidatorCalloutExtender>
</asp:TableCell>

         <asp:TableCell ID="TableCell7" runat="server"><asp:Label ID="Label6" runat="server" Text="Mobil"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell8" runat="server"><asp:TextBox ID="mobil_txtbox" runat="server"></asp:TextBox>
</asp:TableCell>
    </asp:TableRow>

     <asp:TableRow ID="TableRow3" runat="server">
        <asp:TableCell ID="TableCell9" runat="server"><asp:Label ID="Label3" runat="server" Text="Adresse"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell10" runat="server"><asp:TextBox ID="adresse_txtbox" runat="server"></asp:TextBox>
</asp:TableCell>

        <asp:TableCell ID="TableCell11" runat="server"><asp:Label ID="Label7" runat="server" Text="E-mail"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell12" runat="server"><asp:TextBox ID="email_txtbox" runat="server"></asp:TextBox>
</asp:TableCell>
    </asp:TableRow>

     <asp:TableRow ID="TableRow4" runat="server">
        <asp:TableCell ID="TableCell13" runat="server"><asp:Label ID="Label4" runat="server" Text="Post nr:"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell14" runat="server"><asp:TextBox Columns="4" ID="postnr_txtbox" runat="server"></asp:TextBox>




            &nbsp;
            <asp:Label ID="bynavn_label" Font-Italic="True" Font-Size="Smaller" 
             runat="server" Text="Din by"></asp:Label>
</asp:TableCell>

        <asp:TableCell ID="TableCell15" runat="server"><asp:Label ID="Label8" runat="server" Text="Stilling"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell16" runat="server"><asp:TextBox ID="stilling_txtbox" runat="server"></asp:TextBox>
</asp:TableCell>
    </asp:TableRow>

    
    </asp:Table>
    </fieldset>

    </td>

    <td class="TDcivilstatus" valign="top">

     <fieldset style="width: 280px;">
<legend>Personlige oplysninger</legend>
    
     <asp:Table ID="Table3" runat="server" CellPadding="2">
    <asp:TableRow ID="TableRow8" runat="server">
        <asp:TableCell ID="TableCell25" runat="server"><asp:Label ID="Label12" runat="server" Text="fødselsdato"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell26"  runat="server">
            <asp:TextBox ID="birthday_txtbox" Text="dd-mm-åååå" Columns="8" runat="server"></asp:TextBox>&nbsp;
            <asp:TextBox ID="cpr_txtbox" Columns="4" runat="server"></asp:TextBox>
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow9" runat="server">
        <asp:TableCell ID="TableCell27" runat="server"><asp:Label ID="Label14" runat="server" Text="føde by"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell28" runat="server">
            <asp:TextBox ID="birthCity_txtbox" runat="server"></asp:TextBox>&nbsp;
            
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow10" runat="server">
        <asp:TableCell ID="TableCell29" runat="server"><asp:Label ID="Label15" runat="server" Text="fødekommune"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell30" runat="server">
            <asp:TextBox ID="birthKomm_txtbox" runat="server"></asp:TextBox>&nbsp;
            
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow11" runat="server">
        <asp:TableCell ID="TableCell31" runat="server"><asp:Label ID="Label16" runat="server" Text="fødesogn"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell32"  runat="server">
            <asp:TextBox ID="BirthPerish_txtbox" runat="server"></asp:TextBox>&nbsp;
           
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow12" runat="server">
        <asp:TableCell ID="TableCell33" runat="server"><asp:Label ID="Label17" runat="server" Text="Menigheds barn"></asp:Label>
        
</asp:TableCell>

        <asp:TableCell ID="TableCell34"  runat="server">
            <asp:CheckBox ID="mghBarn_chkBox" Checked="false" runat="server">
          </asp:CheckBox>
</asp:TableCell>
        
    </asp:TableRow>

    
     

    
    </asp:Table>
    
    
    
    
    
    </fieldset>
   
    </td>
</tr>

<tr>
<td class="TDkontaktOplysninger" valign="top">

 <fieldset style="width: 440px;">
<legend>Medlems Status</legend>
     <asp:Table ID="Table4" runat="server" CellPadding="2">
    <asp:TableRow ID="TableRow13" runat="server">
        <asp:TableCell ID="TableCell35" runat="server"><asp:Label ID="Label18" runat="server" Text="Medlemstype"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell36"  runat="server">
            <asp:DropDownList ID="mdlType_dropdownList" runat="server">
            
            </asp:DropDownList>
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow14" runat="server">
        <asp:TableCell ID="TableCell37" runat="server"><asp:Label ID="Label19" runat="server" Text="Indmeldelsesdato"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell38" runat="server">
            <asp:TextBox ID="medlemDato_txtbox" runat="server" Text="dd-mm-åååå"></asp:TextBox>
            
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow15" runat="server">
        <asp:TableCell ID="TableCell39" runat="server"><asp:Label ID="Label20" runat="server" Text="Funktion"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell40" runat="server">
            <asp:DropDownList ID="Funktion_dropdownList" runat="server">
            <asp:ListItem Text="Ingen funktion"></asp:ListItem>
            <asp:ListItem  Text="Præst"></asp:ListItem>
            <asp:ListItem Text="Formand"></asp:ListItem>
            <asp:ListItem Text="Kasserer"></asp:ListItem>
            </asp:DropDownList><br />   
            <asp:CheckBox ID="Medtag_NN_ChkBox" Text="Skal medtages i Navne og Adresser" runat="server" />
            
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow16" runat="server">
        <asp:TableCell ID="TableCell41" runat="server" VerticalAlign="Top"><asp:Label ID="Label21" runat="server" Text="Modtager"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell42"  runat="server">
            <asp:CheckBoxList ID="abbonerer_chckListBox" Height="20px" runat="server">
            <asp:ListItem  Text="Magasinet"></asp:ListItem>
            <asp:ListItem Text="VMK nyt"></asp:ListItem>
           
            </asp:CheckBoxList>
           
</asp:TableCell>
        
    </asp:TableRow>

      <asp:TableRow ID="TableRow17" runat="server">
        <asp:TableCell ID="TableCell43" runat="server" ColumnSpan="2">
            <asp:Button ID="dead_Button" runat="server" Text="Død" />&nbsp;
        <asp:Button ID="udmeld_Button" runat="server" Text="Udmeld" />&nbsp;
        <asp:Button ID="transfer_Button" runat="server" Text="Overflyt" />
</asp:TableCell>

       
         

        
    </asp:TableRow>

    
     

    
    </asp:Table>
    </fieldset>
<!-- PERSONLIGE OPLYSNINGER -->


    

    </td>

    <td class="TDcivilstatus" valign="top">
   <!-- CIVIL STATUS --->
    <fieldset style="width: 280px;">
<legend>Relationer</legend>
    <asp:Table ID="Table2" runat="server" CellPadding="2">
    <asp:TableRow ID="TableRow5" runat="server">
        <asp:TableCell ID="TableCell17" runat="server"><asp:Label ID="Label9" runat="server" Text="Civil status"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell18" ColumnSpan="2" runat="server"><asp:DropDownList ID="civilstatus_dropdown" OnSelectedIndexChanged="civilstatus_dropdown_SelectedIndexChanged" runat="server" AutoPostBack="True"><asp:ListItem Text="Single" Selected="True"></asp:ListItem>
<asp:ListItem Text="Gift" Value="2" ></asp:ListItem>
<asp:ListItem Text="Enke(mand)"></asp:ListItem>
</asp:DropDownList>
</asp:TableCell>
        
    </asp:TableRow>

     <asp:TableRow ID="spouse_row" runat="server" Visible="False">
        <asp:TableCell ID="TableCell19" VerticalAlign="Bottom" runat="server"><asp:Label ID="Label11" runat="server" Text="Ægtefælle"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell20" VerticalAlign="Top" ColumnSpan="2" runat="server"><asp:Label ID="spouse_label" runat="server" Text="Johnny Lacour"></asp:Label>



        &nbsp;
<asp:Button ID="choos_spouse_btn" runat="server" Text="Vælg" />
</asp:TableCell>

         
    </asp:TableRow>

     <asp:TableRow ID="TableRow6" runat="server">
        <asp:TableCell ID="TableCell21" RowSpan="2" VerticalAlign="Top" runat="server"><asp:Label ID="Label13" runat="server" Text="Børn"></asp:Label>
</asp:TableCell>
        <asp:TableCell ID="TableCell22" RowSpan="2" VerticalAlign="Top" runat="server"><asp:ListBox ID="children_listbox" Rows="3" Width="150px" runat="server"><asp:ListItem Text="gertrud severinsen"></asp:ListItem>
<asp:ListItem Text="helge severinsen"></asp:ListItem>
</asp:ListBox>
</asp:TableCell>

        <asp:TableCell ID="TableCell23" runat="server" ><asp:ImageButton ID="add_child_btn" 
             ToolTip="Tilføj relation til barn" runat="server" Width="15px" Height="15px" 
             ImageUrl="~/images/add.png" ImageAlign="Middle" />
</asp:TableCell>
        
       
        </asp:TableRow>
        <asp:TableRow ID="TableRow7" runat="server">
        <asp:TableCell ID="TableCell24" runat="server"><asp:ImageButton ID="remove_child_btn" 
                ToolTip="fjern relation til barn" runat="server" Width="15px" Height="15px" 
                ImageUrl="~/images/remove.png" ImageAlign="Middle" />
</asp:TableCell>
    </asp:TableRow>

     

    
    </asp:Table>
    </fieldset>
    </td>
</tr>
</table>

    </ContentTemplate>
    </ajax:TabPanel>

<!-- TAB KIRKELIGE HANDLINGER -->
    <ajax:TabPanel runat="server" HeaderText="Kirkelige handlinger" ID="tabPanel2">
<ContentTemplate>

<table width="800px" cellspacing="10px">
<tr>
<td colspan="2">
<fieldset style="width:300px;" >

<legend runat="server" id="KH_legend_text">Registrer kirkelig handling</legend>

<table>
<tr>
<td>
    <asp:Label ID="Label22" runat="server" Text="Type"></asp:Label>
</td>
<td>
    <asp:DropDownList ID="KH_Type_dropDownList" runat="server">
    </asp:DropDownList>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label23" runat="server" Text="Dato"></asp:Label>
</td>
<td>
    <asp:TextBox ID="KH_dato_textbox" runat="server"></asp:TextBox>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label24" runat="server" Text="Sted"></asp:Label>
</td>
<td>
    <asp:DropDownList ID="KH_STED_DropDown" runat="server">
    </asp:DropDownList>

</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label25" runat="server" Text="Andet sted"></asp:Label>
</td>
<td>
    <asp:TextBox ID="KH_altSted_txtbox" runat="server"></asp:TextBox>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label26" runat="server" Text="Præst"></asp:Label>
</td>
<td>
    <asp:TextBox ID="KH_præst_txtbox" runat="server"></asp:TextBox>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label27" runat="server" Text="Bemærkninger"></asp:Label>
</td>
<td>
    <asp:TextBox ID="KH_comments_txtbox" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
    <asp:Button ID="KH_Annuller_Button" runat="server" Text="Annuller" />&nbsp;
    <asp:Button ID="KH_GEM_Button" onclick="KH_GEM_Button_Click" runat="server" Text="Tilføj" OnClientClick="s" />
</td>
</tr>
</table>



</fieldset>


</td>

</tr>

<tr>
<!-- LISTE OVER KIRKELIGE HANDLINGER -->
<td valign="top">
<fieldset style="width: 350px;">
<legend>Kirkelige handlinger</legend>
    <asp:GridView ID="KH_oversigt_gridView" Width="300px" runat="server" autogenerateselectbutton="True"
 Enabled="true"  onselectedindexchanged="kh_oversigt_selectedIndexChanged" GridLines="Horizontal" HeaderStyle-HorizontalAlign="Left" RowStyle-HorizontalAlign="Left">
    
    </asp:GridView>
    
</fieldset>


</td>
<td valign="top">
<asp:Panel ID="KH_INFO_PANEL" runat="server" Visible="true">
<fieldset style="width: 350px;">
<legend>Info</legend>

<table >
<tr>
<td>
    <asp:Label ID="Label28" runat="server" Text="Handling:"></asp:Label>
</td>
<td>
    <asp:Label ID="KH_Handling_label" runat="server" Text=""></asp:Label>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label29" runat="server" Text="Dato:"></asp:Label>
</td>
<td>
    <asp:Label ID="KH_dato_label" runat="server" Text=""></asp:Label>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="Label31" runat="server" Text="Sted:"></asp:Label>
</td>
<td>
    <asp:Label ID="KH_sted_label" runat="server" Text=""></asp:Label>
</td>
</tr>

<tr>
<td>
    <asp:Label ID="kkk" runat="server" Text="Præst:"></asp:Label>
</td>
<td>
    <asp:Label ID="KH_præst_label" runat="server" Text=""></asp:Label>
</td>
</tr>

<tr>
<td valign="top">
    <asp:Label ID="Label35" runat="server" Text="Bemærkninger:"></asp:Label>
</td>
<td>
    <asp:Label ID="KH_comments_label" runat="server" Text=""></asp:Label>
</td>
</tr>

</table>

</fieldset>
</asp:Panel>
</td>

</tr>
</table>




</ContentTemplate>

</ajax:TabPanel>
</ajax:TabContainer>

    

<span style="float:right; margin-top: 15px; margin-right: 20px;">
    <asp:Button ID="Button2" runat="server" Text="Annuller" 
        onclick="Button2_Click" />&nbsp;
    <asp:Button ID="Button1" runat="server" Text="Gem" onclick="Button1_Click" />&nbsp;
   
    </span>






</asp:Content>
